package net.zisen.cloud.wallet.service;

import net.zisen.cloud.base.msg.ResultMsg;

import java.math.BigDecimal;

/**
 * @author tim/278002989@qq.com
 * @Classname WalletService
 * @Description TODO
 * @Date 2019-05-17 19:15
 */
public interface WalletService {

    /**
     * 扣除钱包金额
     *
     * @param uid
     * @param amount
     * @param num
     * @param description
     * @return
     */
    ResultMsg deduct(Long uid, BigDecimal amount, String num, String description);

    /**
     * 查询钱包余额
     *
     * @param uid
     * @return
     */
    ResultMsg<BigDecimal> checkWalletBalance(Long uid);
}
